package com.pss.common.exception;

public enum ErrorCodes {
    /** 无异常 */
    SUCCESS(0, "无异常"),
    /** 系统异常 */
    SYSTEM_ERROR(-1, "系统异常"),
    /** 无权访问 */
    ACCESS_DENIED(2, "无权访问"),
    /** 运行时异常 */
    RUNTIME_ERROR(3, "运行时异常"),
    /** 输入参数不正确 */
    PARAMS_ERROR(1000, "输入参数不正确"),
    /** 参数为空 */
    PARAM_NULL(1001, "参数为空"),
    /** 列表为空 */
    EMPTY_LIST(1002, "列表为空"),
    /** 超过最大列表长度 */
    OVER_MAX_SIZE(1003, "超过最大列表长度"),
    /** 重复的编码 */
    DUPLICATED_CODE(1004, "重复的编码"),
    /** 列表中有空数据 */
    EMPTY_ELEMENT(1005, "列表中有空数据"),
    PARAMTER_NOT_EMPTY(8001, "参数不能为空"),
    INVALID_SIGNATURE(8002, "无效的签名"),
    USER_NOT_EXIST(8003, "用户不存在"),
    INVALID_SESSION_TOKEN(8004, "无效的SESSION-TOKEN"),
    USER_NOT_LOGIN(8005, "用户未登录"),
    USER_DISABLED(8006, "用户不可用"),
    NOT_FOUND_ORDER_INFO(8007, "没有找到补货单信息"),
    JSON_PARSE_ERROR(8008, "JSON解析错误"),
    NOT_FOUND_SHIP_ADDRESS(8009, "未找到收货地址"),
    NOT_FOUND_SHOP_CART(8010, "未找到购物车订量信息"),
    NO_CORRESPONDING_PERMISSIONS(8011, "该用户没有权限"),
    B2B_LABEL_EXSIT(8012, "该标签已存在"),
    PRODUCT_NOT_EXIST(8013, "商品不存在"),
    RETURN_QTY_GREATER_THAN_ORDER_QTY(8014, "退货数量超过订单数量"),
    FILE_NOT_EXIST(8015, "文件不存在"),
    FILE_TYPE_NOT_IMAGE(8016, "请上传正确的图片"),
    UPDATE_B2B_PRODUCT_CAROUSEL(8017, "更新失败"),
    INPUT_ISNULL(8018, "请将表单填写完整"),
    PRODUCT_CATEGORY_FIELD_NOT_SETTING(8019, "没有配置商品分类字段"),
    STORE_NOT_FOUND(8020, "未找到经销商店仓编号，请维护后操作"),
    EXPRESS_NUMBER_CAN_NOT_NULL(8021, "请填写快递单号"),
    ALIAS_IS_EXIST(8022, "条码已存在"),
    RETURN_RATIO_IS_OVER(8023, "超出退货率，不能退货"),
    PRODUCT_NOT_RETURN(8024, "当季商品不能退货"),
    REPLENISHRECORD_IS_EXIST(8025, "存在补货记录，不得退货"),
    OVER_BACK_AMT(8026, "超出限定的退货金额"),
    LOCKED_ACCOUNT(8027, "账户不可用"),
    ORDER_NUMBER_REPEAT_IN_ERP(8028, "ERP已存在该订单信息"),
    B2B_ONLY_CAN_DELETE_REJECTED_ORDER(8029, "只能删除被驳回/反提交的订单"),
    B2B_ONLY_CAN_UPDATE_REJECTED_ORDER(8030, "只能修改被驳回的订单"),
    B2B_ORDER_NOT_FOUND(8031, "订单未找到"),
    B2B_ORDER_QTY_MUST_GREATER_THAN_ZERO(8032, "订量不能为零"),
    B2B_SALE_QTY_TOO_LARGE(8033, "已保存数量不能大于总订量"),
    B2B_SHARE_QTY_OUT(8034, "分配超出分享量"),
    B2B_WX_PAY_AMT_NOT_LESS_THAN_ZERO(8035, "充值金额必须大于零"),
    B2B_WX_NOT_LOGIN_CAN_NOT_PAY(8036, "微信号未授权,无法支付"),
    B2B_EDIT_QTY_MORE_THAN_ORDER_QTY(8037, "发货数超出已订量，请检查后重新编辑"),
    B2B_USER_NAME_IS_EXIST(8038, "账号已存在，请修改后重新保存"),
    B2B_USER_INFO_BE_MODIFIED(8039, "账号或密码被修改，请联系品牌方问取最新账户信息"),
    B2B_REQUEST_IP_NOT_ALLOW(8040, "请求IP不合法"),
    CUSTOMER_CODE_NOT_FOUND(8041, "经销商编号未找到，请维护后操作"),
    B2B_WISH_LIST_TIME_OUT(8042, "当前时间已超过该心愿单截止时间，无法操作"),
    B2B_WISH_LIST_QTY_OUT(8043, "编辑件数不能超出心愿件数"),
    NOT_FOUND_SEND_SHIP_ADDRESS(8044, "未找到当前登录人发货地址，请绑定"),
    EMPTY_RED_FIELDS(8045, "红色字段不能为空"),
    WAREHOUSE_IS_EXIST(8046, "仓库已存在"),
    STOCK_LOW(8047, "库存不足"),
    WAREHOUSE_IS_NOT_EXIST(8048, "仓库不存在"),
    FORDER_IS_NOT_EXIST(8049, "订货会不存在"),
    SIZE_GROUP_IS_NOT_EXIST(8050, "尺码组不存在"),
    SIZE_IS_NOT_EXIST(8051, "尺码不存在"),
    STOCK_UPDATE_ERROR(8052, "库存更新失败"),
    STOCK_USE_ERROR(8053, "商品已售出，不可删除"),
    FILE_FORMAT_ERROR(8054, "文件格式不正确，请上传zip压缩包"),
    FORDER_CHOOSE_ERROR(8055, "数据中的订货会非当前订货会"),
    ACCOUNT_NOT_ENOUGH_MONEY_ERROR(8056, "账户金额不足"),
    INDEX_REPEAT_ERROR(8057, "同一订单类型只能有一条指标数据"),
    BILLLING_REPEAT_ERROR(8058, "同一订单类型只能有一条折扣数据"),
    USER_HAS_EXIST(8059, "用户已存在,请修改登录用户名"),
    SIZE_NAME_HAS_EXIST(8060, "配比名称已存在，请修改"),
    DISTRIBUTE_SUM_ERROR(8061, "配比合计必须为1"),

    COMMON_ERROR(8062, ""),

    B2B_ACCOUNT_ON_LINE_OTHER_PHONE(8063, "当前账户已在其他设备上登录"),

    ORDER_CAN_NOT_EDIT(8064, "当前订单状态不能操作"),

    NOT_FOUND_SEASON(8065, "未找到季节配置，请联系品牌方"),

    ;
    private int value;

    private String message;

    ErrorCodes(int value, String message) {
        this.value = value;
        this.message = message;
    }

    public int getValue() {
        return value;
    }

    public String getMessage() {
        return message;
    }

}
